import { createStore } from 'vuex'
import user from "@/store/module/user";
import article from '@/store/module/article'
import sideBar from "@/store/module/sideBar";
import config from "@/store/module/config";
import createPersistedState from 'vuex-persistedstate'

export default createStore({
  modules: {
    user,
    article,
    sideBar,
    config
  },
  plugins:[
    createPersistedState({
      key:'blog-admin',
      paths:['user','article','sideBar']
    })
  ]
})
